from sklearn.cluster import AffinityPropagation
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
import numpy as np
centers = [[10, 10], [-10, 10]]
X, labels_true = make_blobs(n_samples=300, centers=centers, cluster_std=0.5,
                                random_state=0)

print(X)
print("=============")
print(len(X))
print("=============")
print(len(labels_true))
print("=============")
print(labels_true)